import axios from '@/utils/request.js'
async function getPintuanData(obj) {
    return await axios.post('/api/group', obj)
}
//删除拼团数据
async function delPintuanData(id) {
    return await axios.post('/api/delgroup', { id })
}
//更改拼团数据状态
async function setPinTuanStart(obj) {
    return await axios.post('/api/setPinTuanStart', obj)
}
//新增拼团数据
async function addPinTuanData(obj) {
    return await axios.post('/api/addPinTuanData', obj)
}
//获取工作台数据
async function getGongzuotai() {
    return await axios.post('/api/getGongzuotai')
}
export {
    getPintuanData,
    delPintuanData,
    setPinTuanStart,
    addPinTuanData,
    getGongzuotai
}